Copy CodeThe code is as follows:
Class zip
{
var $datasec, $ctrl _dir = Array ();
var $eof _ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
var $old _offset = 0; var $dirs = Array (".");
function get_list ($zip _name)
{
$zip = @fopen ($zip _name, '
// The following is the class and function definition classZip // ZIP compression class {var $ datasec, $ ctrl_dir = array (); var $ eof_ctrl_dir = & quot; \ x50 \ x4b \ x05 \ x06 \ x00 \ x00 \ x00 \ x00 & quot; var $ old_offset = 0
// The
Example 1. download the prepared zip file first. php tool class. after downloading and decompressing the file, put the file in the corresponding directory. I put it in the include folder under the virtual directory. 2. add the following code to your
This article provides a detailed analysis of how php generates zip files. For more information, see
This article provides a detailed analysis of how php generates zip files. For more information, see
The Code is as follows:
Require_once
This article provides a detailed analysis of how php generates zip files. For more information, see
The code is as follows:
Require_once "./include/zip. php ";$ Zip = new PHPZip ();// $ Zip-> createZip ("directory address of the folder to be
1. Download the zip. php tool class that I have prepared, decompress it, and put the files in the directory. I put the files in the include folder under the virtual directory.2. Add the following code to your php file:Copy codeThe Code is as follows:
Example of zip compression for php files1. Download the zip. php tool class that I have prepared, decompress it, and put the files in the directory. I put the files in the include folder under the virtual directory.2. Add the following code to your
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.